<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin: 0;
        }
        a{
            text-decoration: none;
        }
        .sub-header{
            height: 100px;
            /*background-color: grey;*/
        }
        .container{
            width: 1126px;
            margin: 0 auto;
            /*border: 1px solid red;*/
        }
        .sub-header .ht{
            height: 100px;
        }
        .sub-header .logo{
            float: left;
            width: 234px;
            /*border: 1px solid red;*/
        }
        .sub-header .logo a{
            margin-top: 22px;
            display: inline-block
        }
        .sub-header .logo a img{
            width: 56px;
            height: 56px
        }
        .sub-header .menu-list{
            float: left;
        }
        .sub-header .menu-list a{
            color: black;
            margin-top:42px;
            display: inline-block;
            height: 88px;
            font-size: 16px;
            padding: 0 5px;
        }
        .sub-header .menu-list a:hover{
            color: #ff6700;
        }
        .sub-header .search{
            float: right;
        }
    </style>
<body>
<div class="sub-header">
    <div class="container">
        <div class=" ht logo">
            <!--a标签是行内标签，默认设置高和边距无效，需要改成块级和 行内+块级才有效-->
            <a href="https://www.mi.com/">
                <img src="../static/mi.png">
            </a>
        </div>
        <div class=" ht menu-list">
            <a href="https://www.mi.com/">Xiaomi手机</a>
            <a href="https://www.mi.com/">Redmi手机</a>
            <a href="">电视</a>
            <a href="">笔记本</a>
            <a href="">平板</a>
            <a href="">家电</a>
            <a href="">路由器</a>
            <a href="">服务中心</a>
            <a href="">社区</a>
        </div>
        <div class="ht search">3</div>
        <div class="clear:both;"></div>


    </div>
</div>

</body>
</html>